// 需求接口定义
export interface Requirement {
  id: number;
  code: string;
  title: string;
  description: string;
  category: string;
  project: string;
  status: '规划中' | '设计中' | '开发中' | '测试中' | '已完成' | '已取消';
  priority: '低' | '中' | '高' | '紧急';
  submitter: string;
  assignee: string;
  progress: number;
  deadline: string;
  createdAt: string;
  updatedAt: string;
  estimatedHours: number;
  actualHours: number;
  tags: string[];
  attachments: string[];
  children?: Requirement[];
}

// 需求API请求参数接口
export interface GetRequirementsParams {
  page?: number;
  pageSize?: number;
  search?: string;
  category?: string;
  project?: string;
  status?: string;
  priority?: string;
}

// 需求统计接口
export interface RequirementStats {
  total: number;
  inProgress: number;
  completed: number;
  highPriority: number;
}

// 需求状态分布接口
export interface RequirementStatusDistribution {
  status: string;
  count: number;
  color: string;
}